const path = require('path');
module.exports = {
  outputDir: 'docs',
  pages: {
    index: {
      entry: 'src/main.ts',
      template: 'public/index.html',
      filename: 'index.html',
      title: '三点水'
    }
  },
  chainWebpack: config => {
    // GraphQL Loader
    config.module
      .rule('markdown')
      .test(/\.md$/)
      .use('vue-loader')
        .loader('vue-loader-v16')
        .end()
      .use('markdown-loader')
        .loader(path.resolve(__dirname, './md-loader/index.js'))
        .end()
      
  }
}
